package spring.javon.aspect;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class HelloAspect {
	//@Before("execution(* spring.javon.service.HelloService.sayHello(..))")
	@Before("@annotation(spring.javon.annotations.Hello)")// 需要在被切入的方法上标有注解@Hello
	public void cuySayHello(){
		System.out.println("cut ...");
	}
}
